import { PAGING } from '@/constant'
import type {
  CalculationIndicatorRecalculationSelectRecalculationSchedulePageParams as A,
  CalculationIndicatorRecalculationSelectRecalculationScheduleDetailPageParams as B,
  CalculationIndicatorRecalculationSelectRecalculationSchedulePageResult as C,
} from '@/types'

export const defaultFormData: Partial<C> = {
  id: 0,
  indicatorName: '',
  indicatorNumber: '',
  timeType: '',
  dataStartTime: '',
  dataEndTime: '',
  state: 0,
  completedQuantity: 0,
  totalQuantity: 0,
  startTime: null,
  endTime: null,
  tenantId: 0,
}

export const formRules
  = generateCurrencyFormRules(defaultFormData)

export const defaultPagingParams: A = {
  ...PAGING.PARAMS,
  name: '',
  key: '',
  state: '' as any,
}
export const defaultPagingParams1: B = {
  ...PAGING.PARAMS,
  id: 0,
  name: '',
  key: '',
  state: '' as any,
}

export const statusOptions = [
  { label: '全部', value: '' },
  { label: '未开始', value: 0 },
  { label: '计算中', value: 1 },
  { label: '计算完成', value: 2 },
  { label: '部分失败', value: 3 },
  { label: '停止', value: 4 },
]
export const statusOptions1 = [
  { label: '全部', value: '' },
  { label: '成功', value: 1 },
  { label: '失败', value: 2 },
]
